package com.bookstore.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bookstore.entity.po.TrolleyPO;
import com.bookstore.entity.vo.TrolleyVO;
import com.bookstore.mapper.TrolleyMapper;
import com.bookstore.service.TrolleyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrolleyServiceImpl extends ServiceImpl<TrolleyMapper, TrolleyPO> implements TrolleyService {
    @Autowired
    TrolleyMapper trolleyMapper;

    @Override
    public List<TrolleyVO> getByUserName(String userName) {
        return trolleyMapper.getByUserName(userName);
    }
}
